Misc improvements to blog posts & events #101
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request includes several changes to improve the handling of page content and metadata across various components and pages. The most important changes include the addition of dynamic content rendering, updates to page metadata, and enhancements to external link handling.
Dynamic Content Rendering:
src/layouts/Posts.astro
: Added conditional rendering for blog page content, displaying "Articles by our contributors" if no content is available.src/pages/stores/index.astro
: IntegratedBlocksRenderer
to dynamically render store page content and updated the title and description based on theStorePage
data.src/pages/tags/index.astro
: Added dynamic rendering for tags page content and updated the title and description based on theTagsPage
data.Page Metadata Updates:
src/pages/stores/index.astro
: Updated the metadata for the store page to use theStorePage
data if available.src/pages/tags/index.astro
: Updated the metadata for the tags page to use theTagsPage
data if available.External Link Handling:
src/layouts/PostDetails.astro
: Added a script to setrel="noopener noreferrer"
andtarget="_blank"
attributes on external links to improve security.Minor Adjustments:
src/components/Footer.astro
: Made minor adjustments to the footer layout and removed the "Stores" link. [1] [2]src/pages/stores/index.astro
andsrc/pages/tags/index.astro
: Added imports forBlocksRenderer
and updated import paths for type definitions. [1] [2] [3]